package com.dwaynema.dao;

import com.dwaynema.dto.ArticleDto;
import com.dwaynema.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ArticleMapper {
    Integer addArticle(Article article);
    List<ArticleDto> getArticles();
    ArticleDto getArticleById(Integer id);
}